package com.clhbolg.controller;

import cn.dev33.satoken.annotation.SaIgnore;
import com.clhbolg.service.WebReportService;
import com.ruoyi.common.core.domain.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 网站上报接口
 *
 * @Author cailinhu
 * @Description TODO
 * @Date 2023/3/10 14:44
 * @Version 1.0
 */
@RestController
@SaIgnore
public class WebReportController {

    @Autowired
    WebReportService webReportService;

    /**
     * 访客信息上报
     * @return
     */
    @PostMapping("/report")
    public R  report(){
        webReportService.report();
        return R.ok();
    }

}
